﻿using System.Collections.Generic;
using Df.Framework.Common;
using Df.Common.Model;

namespace DfMvc.Models
{
    public class Blog : DfEntity
    {
        //public int Id { get; set; }
        public string Title { get; set; }
        public string Description { get; set; }
        public ICollection<Post> Posts { get; set; }      

        //[NotMapped]
        //public ICollection<DfElement> PostCustomeFiledsTemplate
        //{
        //    get
        //    {
        //        var fields = SerializeHelper.DeserializeList<DfElement>(XDocument.Parse(PostCustomFiledsTemplateXml));
        //        return fields;
        //    }
        //    set
        //    {
        //        PostCustomFiledsTemplateXml = SerializeHelper.SerializeListToXml<DfElement>(value.ToList());
        //    }
        //}

        //public string PostCustomFiledsTemplateXml { get; set; }

    }
}
